import request from '@/utils/request'

export function downloadPdfOld(id, option) {
    return request({
        url: `/V2/archives/${option.moduleName}/downloadPDF/${id}`,
        method: 'GET'
    })
}

export function downloadPdf(data = {}, option = {}) {
    return request({
        url: `/V2/archives/${option.moduleName}/downloadPDF`,
        method: 'POST',
        data
    })
}
